package cn.com.digitalnet.ad.repository.mybatis;

import java.util.List;
import java.util.Map;

import cn.com.digitalnet.ad.entity.Permission;
import cn.com.digitalnet.ad.entity.Role;
import cn.com.digitalnet.ad.repository.mybatis.annotation.MyBatisRepository;

@MyBatisRepository
public interface RoleMao extends CrudMao<Role>{
	public List<Permission> getPermissionsForRole(Long roleId);
	public void cleanPermissionsForRole(Long roleId);
	public void addPermissionForRole(Map<String, Object> params);
}
